package com.netease.pris.atom;

import android.text.TextUtils;
import com.netease.f.b;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class ad extends b
{
  public static final int q = 256;
  public static final int r = 512;
  public static final int s = 1024;
  public static final int t = 2048;
  b a;
  b b;
  b c;
  LinkedList d;
  LinkedList j;
  LinkedList k;
  q l;
  w m;
  a n;
  com.netease.pris.atom.a.a o;
  PRISNotification p;

  public ad()
  {
    super("feed");
    super.b("xmlns", "http://www.w3.org/2005/Atom");
    super.b("xmlns:pris", "http://www.163.com/pris/1.0");
  }

  private void a(n paramn)
  {
    if (this.d == null)
      this.d = new LinkedList();
    this.d.add(paramn);
  }

  private void a(o paramo)
  {
    if (this.j == null)
      this.j = new LinkedList();
    this.j.add(paramo);
  }

  private void a(r paramr)
  {
    if (this.k == null)
      this.k = new LinkedList();
    this.k.add(paramr);
  }

  public final c B()
  {
    if (h());
    for (c localc = this.m.a(); ; localc = c.b)
      return localc;
  }

  public final String C()
  {
    if (s());
    for (String str = this.n.d(); ; str = null)
      return str;
  }

  public final int D()
  {
    if (s());
    for (int i = this.n.g(); ; i = 0)
      return i;
  }

  public final aa E()
  {
    if (s());
    for (aa localaa = this.n.e(); ; localaa = aa.c)
      return localaa;
  }

  public final boolean F()
  {
    if (s());
    for (boolean bool = this.n.f(); ; bool = false)
      return bool;
  }

  public String G()
  {
    b localb;
    if (this.b != null)
    {
      localb = this.b.c("name");
      if (localb == null);
    }
    for (String str = localb.A(); ; str = null)
      return str;
  }

  public int H()
  {
    return this.j.size();
  }

  public int I()
  {
    if (g());
    for (int i = this.o.g(); ; i = 0)
      return i;
  }

  public long J()
  {
    long l1;
    if (g())
      l1 = this.o.h();
    while (true)
    {
      return l1;
      l1 = 0L;
    }
  }

  public int K()
  {
    if (g());
    for (int i = this.o.i(); ; i = 0)
      return i;
  }

  public int L()
  {
    if (g());
    for (int i = this.o.j(); ; i = 0)
      return i;
  }

  public LinkedList M()
  {
    return this.d;
  }

  public b a(String paramString1, String paramString2)
  {
    Object localObject1 = new b(paramString1, paramString2);
    if (TextUtils.isEmpty(paramString1));
    while (true)
    {
      if (paramString2 != null)
        ((b)localObject1).g(paramString2);
      for (Object localObject2 = d((b)localObject1); ; localObject2 = new u())
      {
        return localObject2;
        switch (paramString1.charAt(0))
        {
        default:
          break;
        case 'a':
          if (!paramString1.equals("author"))
            break;
          this.b = ((b)localObject1);
          break;
        case 'e':
          if (!paramString1.equals("entry"))
            break;
        case 'i':
        case 'l':
        case 'o':
        case 'p':
        case 't':
        case 'u':
        }
      }
      if (!paramString1.equals("id"))
        continue;
      this.a = ((b)localObject1);
      continue;
      if (!paramString1.equals("link"))
        continue;
      localObject1 = new n();
      a((n)localObject1);
      continue;
      if (paramString1.equals("opensearch:itemsPerPage"))
      {
        if (this.o == null)
          this.o = new com.netease.pris.atom.a.a();
        this.o.a((b)localObject1);
        continue;
      }
      if (paramString1.equals("opensearch:Query"))
      {
        if (this.o == null)
          this.o = new com.netease.pris.atom.a.a();
        this.o.d((b)localObject1);
        continue;
      }
      if (paramString1.equals("opensearch:startIndex"))
      {
        if (this.o == null)
          this.o = new com.netease.pris.atom.a.a();
        this.o.b((b)localObject1);
        continue;
      }
      if (!paramString1.equals("opensearch:totalResults"))
        continue;
      if (this.o == null)
        this.o = new com.netease.pris.atom.a.a();
      this.o.c((b)localObject1);
      continue;
      if (paramString1.equals("pris:ok"))
      {
        localObject1 = new o();
        a((o)localObject1);
        continue;
      }
      if (paramString1.equals("pris:error"))
      {
        localObject1 = new r();
        a((r)localObject1);
        continue;
      }
      if (paramString1.equals("pris:entry_status"))
      {
        this.m = new w();
        localObject1 = this.m;
        continue;
      }
      if (paramString1.equals("pris:subscribe"))
      {
        this.n = new a();
        localObject1 = this.n;
        continue;
      }
      if (!paramString1.equals("pris:notification"))
        continue;
      this.p = new PRISNotification();
      localObject1 = this.p;
      continue;
      if (!paramString1.equals("title"))
        continue;
      this.c = ((b)localObject1);
      continue;
      if (!paramString1.equals("updated"))
        continue;
      this.l = new q();
      localObject1 = this.l;
    }
  }

  public n a(g paramg)
  {
    n localn;
    if (this.d != null)
    {
      Iterator localIterator = this.d.iterator();
      do
      {
        if (!localIterator.hasNext())
          break;
        localn = (n)localIterator.next();
      }
      while ((localn == null) || (localn.s() != paramg));
    }
    while (true)
    {
      return localn;
      localn = null;
    }
  }

  public q a()
  {
    return this.l;
  }

  public o b(int paramInt)
  {
    if ((paramInt < 0) || (paramInt >= H()));
    for (o localo = null; ; localo = (o)this.j.get(paramInt))
      return localo;
  }

  public final String b(g paramg)
  {
    n localn = a(paramg);
    if (localn != null);
    for (String str = localn.a(); ; str = null)
      return str;
  }

  public void b(String paramString1, String paramString2)
  {
    if ("xmlns".equals(paramString1));
    while (true)
    {
      return;
      if (!"xmlns:pris".equals(paramString1))
      {
        super.b(paramString1, paramString2);
        continue;
      }
    }
  }

  public boolean b()
  {
    if (this.a != null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public boolean c()
  {
    if (this.b != null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public boolean d()
  {
    if (this.c != null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public boolean e()
  {
    if (this.l != null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public boolean f()
  {
    if ((this.d != null) && (!this.d.isEmpty()));
    for (int i = 1; ; i = 0)
      return i;
  }

  public boolean g()
  {
    if (this.o != null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public void h(String paramString)
  {
    if (this.a != null)
      this.a.g(paramString);
    while (true)
    {
      return;
      a("id", paramString);
    }
  }

  public boolean h()
  {
    if (this.m != null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public void i()
  {
    if (this.b != null)
      this.b = null;
    if (this.d != null)
    {
      this.d.clear();
      this.d = null;
    }
    if (this.j != null)
    {
      this.j.clear();
      this.j = null;
    }
    if (this.k != null)
    {
      this.k.clear();
      this.k = null;
    }
  }

  public boolean s()
  {
    if (this.n != null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public List t()
  {
    if (this.p == null);
    for (List localList = null; ; localList = this.p.a())
      return localList;
  }

  public PRISNotification u()
  {
    return this.p;
  }

  public String v()
  {
    if (d());
    for (String str = this.c.A(); ; str = null)
      return str;
  }

  public String w()
  {
    if (this.a != null);
    for (String str = this.a.A(); ; str = null)
      return str;
  }

  public String x()
  {
    if (this.l != null);
    for (String str = this.l.b(); ; str = null)
      return str;
  }

  public int y()
  {
    c localc = B();
    int i;
    switch (ae.a[localc.ordinal()])
    {
    default:
      i = 256;
    case 1:
    case 2:
    case 3:
    case 4:
    }
    while (true)
    {
      return i;
      i = 512;
      continue;
      i = 2048;
      continue;
      i = 1024;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.atom.ad
 * JD-Core Version:    0.6.0
 */